//
//  TestRootViewController.h
//  Founder_study
//
//  Created by hongbao.cui on 14-8-29.
//  Copyright (c) 2014年 com.founder. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SwipeView.h"
#import "PaperListView.h"
#import "FMSBaseViewController.h"
@class TestRootViewController;
typedef void (^TestViewSubmitHomeWorkBlock)();
typedef void (^TestViewBackBlock)(TestRootViewController *testVC);
@interface TestRootViewController : FMSBaseViewController<SwipeViewDataSource,SwipeViewDelegate,PaperListViewDelegate>{
    UIImageView *headerBg;
    UILabel *titleLabel;
    SwipeView *_swipeView;
    NSInteger Sum;
    NSInteger noSelected;
    NSMutableArray *answerArray;
    UIButton *collectionBtn;
    NSString *selectionStr;
    NSString *paper_title;//试卷题目
    NSString *paper_score;//试卷总分
    NSString *paper_time;//试卷时间
//    NSString *user_time;
    BOOL isExercise;//判断是练习还是测试，默认是练习
    NSInteger supportedOrientationsMask;
    NSTimer *rootTimer;
    NSString *isReset;
    UILabel *totalLabel;
}
@property(nonatomic,copy)TestViewSubmitHomeWorkBlock homeWorkBlock;
@property(nonatomic,strong)NSMutableArray *paperArray;
@property(nonatomic,strong)NSMutableArray *answerArray;
@property(nonatomic,strong)NSDictionary *urlDict;
@property(nonatomic,strong)NSString *user_time;
@property(nonatomic,weak)UIButton *photoBtn;
@property(nonatomic,strong)NSTimer *rootTimer;
@property(nonatomic)NSInteger supportedOrientationsMask;
@property(nonatomic,copy)TestViewBackBlock testVCBackBlock;
@property(nonatomic)NSInteger currentPage;
@property(nonatomic)BOOL offLineOrNot;//测试模式是否支持离线做题,支持YES,不支持NO,为NO时每次都从网络获取
-(void)initAnswerData;
@end
